Skip to content

fix(deps): update dependency morgan to v1.12.0 [security] - #245

Open
renovate[bot] wants to merge 1 commit into
nextfrom
renovate/template-demo-npm-morgan-vulnerability
Open

fix(deps): update dependency morgan to v1.12.0 [security]#245
renovate[bot] wants to merge 1 commit into
nextfrom
renovate/template-demo-npm-morgan-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
morgan 1.10.01.12.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


morgan vulnerable to Log Forging via unneutralized control characters in :remote-user

CVE-2026-5078 / GHSA-4vj7-5mj6-jm8m

More information

Details

Impact

Morgan's :remote-user token extracts the Basic auth username from the Authorization header and writes it to the log stream without neutralizing control characters. An attacker can send a crafted Authorization: Basic header containing CR/LF characters to inject forged log lines, corrupting the one-request-per-line structure of access logs.

The built-in combined, common, default, and short formats are affected, as well as any custom format that includes :remote-user.

Patches

Users should upgrade to version 1.11.0.

Workarounds

Use a custom format string that does not include :remote-user.

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


morgan vulnerable to Log Forging via unescaped Unicode line separators

CVE-2026-15603 / GHSA-jxfw-x594-9x9m

More information

Details

Impact

Morgan writes attacker-controlled request data to the access log through its tokens. The 1.11.0 fix neutralizes C0 control characters, DEL, and backslash, but it does not escape the Unicode line separators U+0085 (NEL), U+2028 (LINE SEPARATOR), or U+2029 (PARAGRAPH SEPARATOR). These code points are reachable through several tokens, including the request URL (:url), request headers such as :user-agent and :referrer, arbitrary :req[header] values, and the Basic auth username (:remote-user). NEL is valid obs-text in HTTP header values, so an attacker can place it in an ordinary request header.

When such a value is logged, the raw code points survive into the emitted access-log record, and downstream ECMAScript-aware or Unicode-aware log processing splits the single physical record into multiple logical records. This allows an attacker to forge log entries. The built-in combined, common, default, and short formats are affected, as well as any custom format. This is an incomplete fix of CVE-2026-5078.

Patches

Users should upgrade to version 1.12.0.

Workarounds

None. The affected values include the request URL and request headers, which are core to access logging, so there is no practical format-based mitigation. Upgrade to 1.12.0.

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

expressjs/morgan (morgan)

v1.12.0

Compare Source

======

  • Security fix for CVE-2026-15603(GHSA-jxfw-x594-9x9m)
  • Allow format functions to return objects for streams in objectMode
  • Respect the NO_COLOR environment variable in the dev format

v1.11.0

Compare Source

===================

  • add :pid token

Security Fix:

v1.10.1

Compare Source

===================


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/template-demo-npm-morgan-vulnerability branch from b32cab6 to 6eaca70 Compare August 12, 2026 00:52
@renovate
renovate Bot force-pushed the renovate/template-demo-npm-morgan-vulnerability branch from 6eaca70 to b381a66 Compare August 26, 2026 14:16
@renovate
renovate Bot force-pushed the renovate/template-demo-npm-morgan-vulnerability branch from b381a66 to 0440962 Compare September 3, 2026 19:37
@renovate
renovate Bot force-pushed the renovate/template-demo-npm-morgan-vulnerability branch from 0440962 to b1c86e9 Compare September 9, 2026 21:54
@renovate renovate Bot changed the title fix(deps): update dependency morgan to v1.11.0 [security] fix(deps): update dependency morgan to v1.12.0 [security] Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants